Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a meta tag to opt out of cohort training #2459

Closed
wants to merge 1 commit into from
Closed

Add a meta tag to opt out of cohort training #2459

wants to merge 1 commit into from

Conversation

dmarti
Copy link

@dmarti dmarti commented Feb 13, 2021

The upcoming "Federated Learning of Cohorts" proposal would enable data collection for identifying users who are members of particular groups based on their web history.

Sites will need to evaluate whether their content, or user patterns of activity on-site, can safely be used for this purpose. If this is the case, then this opt out can be removed.

More information and discussion are in the FLoC repo at: https://github.com/WICG/floc

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Pull requests should be thought of as a conversation. There will be some back and forth when trying to get code merged into this or any other project. With all but the simplest changes you can and should expect that the maintainers of the project will request changes to your code. Please be aware of that and check in after you open your PR in order to get your code merged in cleanly.

Thanks!

The upcoming "Federated Learning of Cohorts" proposal would enable data collection for identifying users who are members of particular groups based on their web history.

Sites will need to evaluate whether their content, or user patterns of activity on-site, can safely be used for this purpose. If this is the case, then this opt out can be removed.

More information and discussion are in the FLoC repo at: https://github.com/WICG/floc
@coliff
Copy link
Member

coliff commented Feb 14, 2021

Sounds like an interesting idea - though as it’s in the proposal stage at the moment and isn’t implemented by any browsers/adtech companies I think it’s too early to consider adding it to the html5 boilerplate.

@dmarti
Copy link
Author

dmarti commented Feb 15, 2021

Thank you. There is a trial version of FLoC coming out in March 2021. (WICG/floc#25)

I will post updates here as this proposal moves forward. If they decide to make cohort training opt-in for the site, then this meta tag will not be needed.

@dmarti
Copy link
Author

dmarti commented Mar 31, 2021

The FLoC origin trial has begun. However this opt-out method will not work in the released version.

They are planning to do an opt-out that can be incorporated into the page, and I will update this pull request to match.

@coliff
Copy link
Member

coliff commented Oct 27, 2021

Heya @dmarti - I was just checking in on the status of Federated Learning of Cohorts (FLoC) and reading about how some big sites are opting out with a HTTP header Permissions-Policy: interest-cohort=(). Maybe we could consider adding something about that to our server configs?
https://github.com/h5bp/server-configs-apache
https://github.com/h5bp/server-configs-nginx

@coliff
Copy link
Member

coliff commented Nov 11, 2021

Let's close this one. It's an interesting thing to keep track of, but it looks like it'll be something for the server configs rather than a meta tag.

@coliff coliff closed this Nov 11, 2021
@roblarsen
Copy link
Member

@coliff Sounds good. Are there associated issues over in the config repos? cc: @LeoColomb

@LeoColomb
Copy link
Member

LeoColomb commented Nov 11, 2021

FLoC is still planed to come after all? 😱
Yes, there was an issue filled for this (h5bp/server-configs-apache#266), but it's still not included per default.
Do you think it should be per default?

@dmarti
Copy link
Author

dmarti commented Nov 11, 2021

There is still an open issue in the FLoC project (WICG/floc#13) covering HTML opt-out. The problem is that a meta http-equiv= tag can only set certain HTTP headers, and Permissions-Policy is not one of them. The FLoC project still needs to find a way to make an opt-out tag that would work for people who want to opt out but can't set the opt-out HTTP header.

@dmarti
Copy link
Author

dmarti commented Nov 11, 2021

@LeoColomb @coliff It looks like the existing approach to web server config files is to turn all the Permissions-Policy settings off, and then people can turn them back on as needed. (just looking at h5bp/server-configs-nginx@36310b9 ) If someone starts a web project now, there is a fairly good chance that it will be live at some point when FLoC-enabled browsers are out there. It probably depends on how you want to balance safety across different possible future scenarios against the bytes saved. (I expect that many people using h5bp as a starting point for their web projects will not be building an ad-supported site, so the advertising reasoning around FLoC might not apply to those projects.)

dmarti added a commit to dmarti/html5-boilerplate that referenced this pull request May 5, 2022
As multiple third-party scripts might be added to a site during
development, it can be difficult to see when a script is
attempting to use new browser features that might have privacy
consequences.

Consider adding a simple alert so that scripts can be checked and/or
the site Permissions-Policy set before deploying to production.

The "alert" is for development purposes, and could be replaced with
an analytics event if a site wants to monitor attempted use of
Topics API by third parties in production.

Related: h5bp#2459
@dmarti dmarti mentioned this pull request May 5, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants